package com.pay.web.utils;

/**
 * Created by chenweiyi on 2018/3/15.
 */
class A{
    public A(){
        System.out.println("HA");
    }
    {
        System.out.println("IA");
    }
    static {
        System.out.println("SA");
    }
}
public class B extends A{
    public B(){
        System.out.println("HB");
    }
    {
        System.out.println("IB");
    }
    static {
        System.out.println("SB");
    }

    public static boolean get(){
        try{
            return true;
        }finally {
            return false;
        }
    }

    int t(){
       return 0;
    }

    public  static void main(String [] args){
        new B();
        int j= 0;
        for(int i = 0;i < 100; i++){
            j = j++;
        }
        System.out.println(j);
        System.out.println(get());

        Long a = new Long(128l);
        Long b = new Long(128l);
        System.out.println(a == b);
        System.out.println(a == 1l);
        System.out.println(a.equals(b));

        String s1 = new String("abc");
        String s2 = new String("abc");
        System.out.println(s1 == s2);
        System.out.println(s1 == "abc");
        System.out.println(s1.equals(s2));

    }
}
